Skip to main content
Version: Upcoming

SpreadMarketSummary

V8 Message Definiton

These records represent live market summary snapshots for each active spread market

METADATA

AttributeValue
Topic2895-market-data-spreads
MLink TokenSpreadMktData
ProductSRSpread
accessTypeSELECT

Table Definition

FieldTypeKeyDefault ValueComment
skey_atenum - AssetTypePRI'None'
skey_tsenum - TickerSrcPRI'None'
skey_tkVARCHAR(12)PRI''
ticker_atenum - AssetType'None'underlier or product group tickerKey
ticker_tsenum - TickerSrc'None'underlier or product group tickerKey
ticker_tkVARCHAR(12)''underlier or product group tickerKey
iniPriceDOUBLE0first print price of the day during regular market hours
mrkPriceDOUBLE0last print handling during regular market hours
clsPriceDOUBLE0official exchange closing price
minPriceDOUBLE0minimum print price within market hours
maxPriceDOUBLE0maximum print price within market hours
openIntINT0open interest
bidCountINT0num prints quotebid
bidVolumeINT0volume when prtPrice quotebid
askCountINT0num prints quoteask
askVolumeINT0volume when prtPrice quoteask
midCountINT0num prints inside quotebid quoteask
midVolumeINT0volume inside quotebid quoteask
prtCountINT0number of distinct print reports
prtPriceDOUBLE0last print price
expCountINT0number of updates included in exponential average
expWidthDOUBLE0exponential average market width 10 minute 12 life
expBidSizeFLOAT0exponential average bid size 10 minute 12 life
expAskSizeFLOAT0exponential average ask size 10 minute 12 life
lastPrintDATETIME(6)'1900-01-01 00:00:00.000000'
timestampDATETIME(6)'1900-01-01 00:00:00.000000'

PRIMARY KEY DEFINITION (Unique)

FieldSequence
skey_tk1
skey_at2
skey_ts3

CREATE TABLE EXAMPLE QUERY

CREATE TABLE `SRSpread`.`MsgSpreadMarketSummary` (
`skey_at` ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') NOT NULL DEFAULT 'None',
`skey_ts` ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','EUX','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFE') NOT NULL DEFAULT 'None',
`skey_tk` VARCHAR(12) NOT NULL DEFAULT '',
`ticker_at` ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') NOT NULL DEFAULT 'None' COMMENT 'underlier (or product group) tickerKey',
`ticker_ts` ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','EUX','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFE') NOT NULL DEFAULT 'None' COMMENT 'underlier (or product group) tickerKey',
`ticker_tk` VARCHAR(12) NOT NULL DEFAULT '' COMMENT 'underlier (or product group) tickerKey',
`iniPrice` DOUBLE NOT NULL DEFAULT 0 COMMENT 'first print price of the day during regular market hours',
`mrkPrice` DOUBLE NOT NULL DEFAULT 0 COMMENT 'last print handling during regular market hours',
`clsPrice` DOUBLE NOT NULL DEFAULT 0 COMMENT 'official exchange closing price',
`minPrice` DOUBLE NOT NULL DEFAULT 0 COMMENT 'minimum print price within market hours',
`maxPrice` DOUBLE NOT NULL DEFAULT 0 COMMENT 'maximum print price within market hours',
`openInt` INT NOT NULL DEFAULT 0 COMMENT 'open interest',
`bidCount` INT NOT NULL DEFAULT 0 COMMENT 'num prints <= quote.bid',
`bidVolume` INT NOT NULL DEFAULT 0 COMMENT 'volume when prtPrice <= quote.bid',
`askCount` INT NOT NULL DEFAULT 0 COMMENT 'num prints >= quote.ask',
`askVolume` INT NOT NULL DEFAULT 0 COMMENT 'volume when prtPrice >= quote.ask',
`midCount` INT NOT NULL DEFAULT 0 COMMENT 'num prints inside quote.bid / quote.ask',
`midVolume` INT NOT NULL DEFAULT 0 COMMENT 'volume inside quote.bid / quote.ask',
`prtCount` INT NOT NULL DEFAULT 0 COMMENT 'number of distinct print reports',
`prtPrice` DOUBLE NOT NULL DEFAULT 0 COMMENT 'last print price',
`expCount` INT NOT NULL DEFAULT 0 COMMENT 'number of updates included in exponential average',
`expWidth` DOUBLE NOT NULL DEFAULT 0 COMMENT 'exponential average market width (10 minute 1/2 life)',
`expBidSize` FLOAT NOT NULL DEFAULT 0 COMMENT 'exponential average bid size (10 minute 1/2 life)',
`expAskSize` FLOAT NOT NULL DEFAULT 0 COMMENT 'exponential average ask size (10 minute 1/2 life)',
`lastPrint` DATETIME(6) NOT NULL DEFAULT '1900-01-01 00:00:00.000000',
`timestamp` DATETIME(6) NOT NULL DEFAULT '1900-01-01 00:00:00.000000',
PRIMARY KEY USING HASH (`skey_tk`,`skey_at`,`skey_ts`)
) ENGINE=SRSE DEFAULT CHARSET=LATIN1 COMMENT='These records represent live market summary snapshots for each active spread market';

SELECT TABLE EXAMPLE QUERY

SELECT
`skey_at`,
`skey_ts`,
`skey_tk`,
`ticker_at`,
`ticker_ts`,
`ticker_tk`,
`iniPrice`,
`mrkPrice`,
`clsPrice`,
`minPrice`,
`maxPrice`,
`openInt`,
`bidCount`,
`bidVolume`,
`askCount`,
`askVolume`,
`midCount`,
`midVolume`,
`prtCount`,
`prtPrice`,
`expCount`,
`expWidth`,
`expBidSize`,
`expAskSize`,
`lastPrint`,
`timestamp`
FROM `SRSpread`.`MsgSpreadMarketSummary`
WHERE
/* Replace with a ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') */
`skey_at` = 'None'
AND
/* Replace with a ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','EUX','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFE') */
`skey_ts` = 'None'
AND
/* Replace with a VARCHAR(12) */
`skey_tk` = 'Example_skey_tk';

Doc Columns Query

SELECT * FROM SRSpread.doccolumns WHERE TABLE_NAME='SpreadMarketSummary' ORDER BY ordinal_position ASC;